package com.storage.system.mapper;

import com.storage.system.domain.StorageNoticeMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户 数据层
 *
 * @author ruoyi
 * @date 2019-09-12
 */
public interface StorageNoticeMessageMapper {
    /**
     * 查询用户信息
     *
     * @param id 用户ID
     * @return 用户信息
     */
    public StorageNoticeMessage selectStorageNoticeMessageById(Long id);

    /**
     * 查询用户列表
     *
     * @param StorageNoticeMessage 用户信息
     * @return 用户集合
     */
    public List<StorageNoticeMessage> selectStorageNoticeMessageList(StorageNoticeMessage StorageNoticeMessage);

    /**
     * 新增用户
     *
     * @param StorageNoticeMessage 用户信息
     * @return 结果
     */
    public int insertStorageNoticeMessage(StorageNoticeMessage StorageNoticeMessage);

    /**
     * 修改用户
     *
     * @param StorageNoticeMessage 用户信息
     * @return 结果
     */
    public int updateStorageNoticeMessage(StorageNoticeMessage StorageNoticeMessage);

    /**
     * 删除用户
     *
     * @param id 用户ID
     * @return 结果
     */
    public int deleteStorageNoticeMessageById(Long id);

    /**
     * 批量删除用户
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteStorageNoticeMessageByIds(String[] ids);

    /**
     * 查询分页数据
     *
     * @param StorageNoticeMessage
     * @param start
     * @param pageSize
     * @return
     */
    List<StorageNoticeMessage> queryPageList(@Param("message") StorageNoticeMessage StorageNoticeMessage, @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    /**
     * 查询分页count
     * @param StorageNoticeMessage
     * @return
     */
    Long queryPageCount(StorageNoticeMessage StorageNoticeMessage);

    /**
     * 指定用户未读消息
     *
     * @param phone
     * @return
     */
    Integer unReadNoticeMessage(@Param("phone") String phone);
}